package com.cimp.service.c2.client;

/**
 * [简要描述]:
 * [详细描述]:
 *
 * @author huojinhao
 * @date 2019/1/8
 */
import java.rmi.RemoteException;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Hashtable;
import java.util.List;
import java.util.Map;
import javax.xml.namespace.QName;
import org.apache.axis.description.OperationDesc;
import org.apache.axis.description.ParameterDesc;
import org.apache.axis.wsdl.Skeleton;

public class CtmsSoapBindingSkeleton implements CSPRequest, Skeleton {
    private CSPRequest impl;
    private static Map _myOperations = new Hashtable();
    private static Collection _myOperationsList = new ArrayList();

    static {
        ParameterDesc[] _params = new ParameterDesc[]{new ParameterDesc(new QName("", "CSPID"), (byte)1, new QName("http://schemas.xmlsoap.org/soap/encoding/", "string"), String.class, false, false), new ParameterDesc(new QName("", "LSPID"), (byte)1, new QName("http://schemas.xmlsoap.org/soap/encoding/", "string"), String.class, false, false), new ParameterDesc(new QName("", "CorrelateID"), (byte)1, new QName("http://schemas.xmlsoap.org/soap/encoding/", "string"), String.class, false, false), new ParameterDesc(new QName("", "CmdFileURL"), (byte)1, new QName("http://schemas.xmlsoap.org/soap/encoding/", "string"), String.class, false, false)};
        OperationDesc _oper = new OperationDesc("execCmd", _params, new QName("", "ExecCmdReturn"));
        _oper.setReturnType(new QName("iptv", "CSPResult"));
        _oper.setElementQName(new QName("iptv", "ExecCmd"));
        _oper.setSoapAction("");
        _myOperationsList.add(_oper);
        if (_myOperations.get("execCmd") == null) {
            _myOperations.put("execCmd", new ArrayList());
        }

        ((List)_myOperations.get("execCmd")).add(_oper);
    }

    public static List getOperationDescByName(String methodName) {
        return (List)_myOperations.get(methodName);
    }

    public static Collection getOperationDescs() {
        return _myOperationsList;
    }

    public CtmsSoapBindingSkeleton() {
        this.impl = new CtmsSoapBindingImpl();
    }

    public CtmsSoapBindingSkeleton(CSPRequest impl) {
        this.impl = impl;
    }

    public CSPResult execCmd(String CSPID, String LSPID, String correlateID, String cmdFileURL) throws RemoteException {
        CSPResult ret = this.impl.execCmd(CSPID, LSPID, correlateID, cmdFileURL);
        return ret;
    }
}

